﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace GuiNetE
{
    public partial class MyFirstMenu : Form
    {
        FormIndialog inDialog;
        

        public MyFirstMenu()
        {
            inDialog = new FormIndialog( );
            InitializeComponent();
        }


        private void läsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            inDialog.ShowDialog();
        }

        private void skrivToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if ( inDialog.I != 0 )
                MessageBox.Show( inDialog.I.ToString(), "Heltalsdata");
            else
                MessageBox.Show("No Value entered", "Heltalsdata");
        }

        private void avslutaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
